package com.atguigu.dao;

import com.atguigu.pojo.TravelGroup;
import com.github.pagehelper.Page;

import java.util.HashMap;
import java.util.List;

/**
 * @author Eric
 * @Create 2020-09-16  17:11
 * @Version project-workspace-0912
 **/
public interface TravelGroupDao {

    void add(TravelGroup travelGroup);

    void setTravelgroupAndTravelitem(HashMap<String,Integer> map);

    Page<TravelGroup> findPage(String value);

    //根据id查找
    TravelGroup findById(Integer id);

    List<TravelGroup> findAll();

    List<Integer> findTravelItemIdByTravelgroupId(Integer id);

    void edit(TravelGroup travelGroup);

    void deleteTravelGroupAndTravelItemByTravelGroupId(Integer id);

    List<TravelGroup> findTravelGroupListById(Integer id);


}
